package com.ccn.qrcode.utils.zxing;

import com.ccn.qrcode.pojo.QrcodeFilePojo;
import com.ccn.qrcode.utils.zxing.qrcode.SelfQRCodeWriter;
import com.google.zxing.BarcodeFormat;
import com.google.zxing.EncodeHintType;
import com.google.zxing.WriterException;
import com.google.zxing.common.BitMatrix;

import java.util.Map;

public class SelfMultiFormatWriter {

    public BitMatrix encode(String contents, BarcodeFormat format, int width, int height, Map<EncodeHintType, ?> hints, QrcodeFilePojo qrcodeFilePojo )
            throws WriterException {
        SelfQRCodeWriter writer = new SelfQRCodeWriter();
        return writer.encode(contents, format, width, height, hints, qrcodeFilePojo);
    }
}
